Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #10344 #10345

Merged
merged 10 commits into from
Apr 18, 2024
Merged

Fixes #10344 #10345

merged 10 commits into from
Apr 18, 2024

Conversation

Jarred-Sumner
Copy link
Collaborator

What does this PR do?

Fixes #10344

How did you verify your code works?

Test

Copy link
Contributor

@Jarred-Sumner, your commit has failing tests :(

💪 6 failing tests on bun-darwin-aarch64.

 5 failing tests on bun-darwin-x64-baseline.

 4 failing tests on bun-darwin-x64.

🐧💪 6 failing tests on bun-linux-aarch64.

🐧 4 failing tests on bun-linux-x64-baseline.

🐧 3 failing tests on bun-linux-x64.

View logs

Copy link
Contributor

@Jarred-Sumner, your commit has failing tests :(

💪 8 failing tests on bun-darwin-aarch64.

 6 failing tests on bun-darwin-x64-baseline.

 4 failing tests on bun-darwin-x64.

🐧💪 5 failing tests on bun-linux-aarch64.

🐧 5 failing tests on bun-linux-x64-baseline.

🐧 6 failing tests on bun-linux-x64.

View logs

Copy link
Contributor

@Jarred-Sumner, your commit has failing tests :(

💪 5 failing tests on bun-darwin-aarch64.

💻 5 failing tests on bun-darwin-x64-baseline.

💻 3 failing tests on bun-darwin-x64.

🐧🖥 5 failing tests on bun-linux-x64-baseline.

🐧🖥 5 failing tests on bun-linux-x64.

View logs

Copy link
Contributor

@Jarred-Sumner, your commit has failing tests :(

💪 6 failing tests on bun-darwin-aarch64.

💻 4 failing tests on bun-darwin-x64-baseline.

💻 6 failing tests on bun-darwin-x64.

🐧💪 4 failing tests on bun-linux-aarch64.

🐧🖥 3 failing tests on bun-linux-x64-baseline.

🐧🖥 2 failing tests on bun-linux-x64.

View logs

@@ -558,7 +558,7 @@ function emojiTag(tag) {
emojiText += "";
}

if (tag.includes("x86") || tag.includes("_64") || tag.includes("amd64")) {
if (tag.includes("x86") || tag.includes("x64") || tag.includes("_64") || tag.includes("amd64")) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why has _64 been a part of this check? that is a very dubious way to check for x86_64.

.linux => "'linux'",
.mac => "'darwin'",
.windows => "'win32'",
else => "unknown",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is a syntax error

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could consider just using Environment.os.nameString() to avoid repeating yourself here. then surround it with quotes

.windows => "'win32'",
else => "unknown",
},
switch (Environment.isX64) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this switch looks weird. i would've just used switch (builtin.target.cpu.arch)

make the else a compile error

@paperdave paperdave merged commit a78668e into main Apr 18, 2024
@paperdave paperdave deleted the jarred/fixes-10344 branch April 18, 2024 19:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bun build --compile crashes with embedded binary files on Windows
2 participants